<div class="path"><i class="iconfont">&#xf108;</i>  <a href="###">开始</a> {$sitename} / <a href="{url('channel/linkurl',array(id=>$frameid))}">站内链接</a> / {if $types}<a href="{url('channel/linkurl',array(id=>$frameid,types=>$types))}">{if $types ==1}网站栏目 {elseif $types ==2}网站单页{elseif $types ==3}特性或专题{/if}</a>{/if}{$path}</div></div>
<div class="w500">
<div class="h300 m5" style="overflow-y:auto">
<table class="table">
<thead><tr><th class="fn-tac w60">属性</th><th class="fn-tac w100">所属站点</th><th>名称</th>{if $types}<th class="w60">点击引用</th>{/if}</tr></thead>
<tbody>
{if !$types}
<tr><td class="fn-tac">栏目</td><td class="fn-tac">{if $sitename}{$sitename}{else}所有站点{/if}</td><td><i class="iconfont blue fn-f14">&#xf07c;</i> <a href="{url('channel/linkurl',array(id=>$frameid,types=>1))}" class="fb f14">网站栏目</a></td></tr>
<tr><td class="fn-tac">单页</td><td class="fn-tac">{if $sitename}{$sitename}{else}所有站点{/if}</td><td><i class="iconfont blue fn-f14">&#xf07c;</i> <a href="{url('channel/linkurl',array(id=>$frameid,types=>2))}" class="fb f14">网页单页</a></td></tr>
<tr><td class="fn-tac">特性</td><td class="fn-tac">{if $sitename}{$sitename}{else}所有站点{/if}</td><td><i class="iconfont blue fn-f14">&#xf07c;</i> <a href="{url('channel/linkurl',array(id=>$frameid,types=>3))}" class="fb f14">特性或专题</a></td></tr>
{/if}
{if $types ==1}
{foreach $channel as $vo}
<tr><td class="fn-tac">栏目</td>
<td class="fn-tac">{$vo['website_name']}</td>
<td><i class="iconfont blue fn-f14">&#xf0f6;</i> <a href="{url('channel/linkurl',array(id=>$frameid,types=>1,pid=>$vo['id']))}">{$vo['name']}</a></td>
<td class="fn-tac"> <a href="###" class="pt" tpl="{url('default/lists',array('uid' => $vo['id']))}">引用</a></td></tr>
{/foreach}
{elseif $types ==2}
{foreach $diypage as $vo}
<tr><td class="fn-tac">单页</td>
<td class="fn-tac">{$vo['website_name']}</td>
<td><i class="iconfont blue fn-f14">&#xf0f6;</i> {$vo['title']}</td>
<td class="fn-tac"> <a href="###" class="pt" tpl="{url('default/page',array('uid' => $vo['id']))}">引用</a></td></tr>
{/foreach}
{elseif $types ==3}
{foreach $special as $vo}
<tr><td class="fn-tac">.URL</td>
<td class="fn-tac">{$vo['website_name']}</td>
<td><i class="iconfont blue fn-f14">&#xf0f6;</i> <a href="{url('default/linkurl',array(id=>$frameid,types=>3,pid=>$vo['id']))}">{$vo['name']}</a></td>
<td class="fn-tac"> <a href="###" class="pt" tpl="{url('default/topic',array('uid' => $vo['id']))}">引用</a></td></tr>
{/foreach}
{/if}
</tbody>
</table>
</div>
</div>
<script language="javascript">
Do('dialog',function(){
    $('.pt').click(function(){
        var origin = artDialog.open.origin;
        var aValue = $(this).attr("tpl");
        var input = origin.document.getElementById('{$frameid}');
        input.value = aValue;
        input.select();
        $.dialog.close()
    })
})
</script>

